package com.biz.primus.ms.stock;

import com.biz.primus.ms.base.config.BaseConfiguration;
import com.biz.primus.ms.stock.stream.StockChangeSource;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;

/**
 * @author yanweijin
 * @date 2017/9/8
 */
@SpringCloudApplication
@Import({
        BaseConfiguration.class,
})
@EnableBinding(value = {
        StockChangeSource.class,
})
public class StockServiceApplication {


    public static void main(String[] args) {
        SpringApplicationBuilder springApplicationBuilder = new SpringApplicationBuilder(StockServiceApplication.class);
        springApplicationBuilder.web(true).run(args);
    }


}
